package global

type appInfo struct {
	version string
	date    string
	author  string
	name    string
}

var ai *appInfo

func init() {
	ai = &appInfo{
		version: "V1.0",
		date:    "2020-08-30",
		author:  "yss",
		name:    "模拟验证下位机",
	}
}

// String ...
func (a *appInfo) String() string {
	return a.name + " Version:" + a.version + "," + a.date
}

// GetAppInfo 获取应用信息
func GetAppInfo() *appInfo {
	return ai
}
